/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package register.ucm;
import register.model.ButtonModel;
import register.model.PhotoPanelValueModel;
import register.view.*;
import javax.swing.*;
//import register.ucm.PhotoCamera;
/**
 *
 * @author Donghui
 */
public class GetPathFromPhoto {

    private PhotoPanelValueModel value;
    private ButtonModel button;
    private String path;
    private JLabel label;
    public GetPathFromPhoto(PhotoCamera temp)
    {
        value = temp.getPhotoPanelValueModel();
        this.passFilePath();
        button= RegisterPanel.getInstance().getButtonModel();
        label=button.getPath();
        label.setText(path);
    }

    public void passFilePath()
    {
        path=value.getPath();
    }


}
